package lab02.test25;
import java.util.Scanner;
public class Test25 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入两个想要相除的数：");
        int couter1 = scanner.nextInt();
        int couter2 = scanner.nextInt();
       try{
           int result = couter1 / couter2;
           System.out.println("两个数相除的结果为：" + result);
       }
        catch (ArithmeticException e){
            System.out.println("除数不能为0");
        }
        finally {
           System.out.println("输入格式错误！！！");
        }
    }
}
